<!-- ruleid: test -->
<script type="text/javascript">
  console.log(foobar)
  foo()
  bar()
  console.log(foobar)
</script>
